<?php
$con = mysql_connect("113.215.1.161","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
//code
mysql_select_db("mydb", $con);//选库
mysql_query("set names 'utf8'");
$result = mysql_query("SELECT * FROM CDN_domainTab WHERE flag=0");
while($row = mysql_fetch_array($result))
  {
    
  echo $row['CDN'] . "\t". $row['Domain']. "\n";
  }
mysql_close($con);

?> 